package domain;

public class Designer extends Programmer {
    private double bonus;//奖金

    public Designer() {
    }

    public Designer(int id, String name, int age, double sarlay, Equipment equipment, double bonus) {
        super(id, name, age, sarlay, equipment);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public String toString() {
        /**
        *@作者:侯国威
        *@时间：2020/4/10_15:33
        *@描述: getDetails()=1	侯国威	22	3000.0前面四个信息
        */
        return getDetails()+"\t设计师\t"+getStatus()+"\t"+bonus+"\t"+getEquipment();
    }
}
